var T_In_Valve = []   // 进阀温度
var T_Out_Valve = []    // 出阀温度
var F_Of_CW = []          // 冷却水流量
var P_In_Valve = []       // 进阀压力
var P_Out_Valve= []         // 出阀压力
var L_In_Tank= []   // 膨胀罐液位
var P_In_Tank= []   // 膨胀罐压力
var L_rep_Tank= []   // 补水罐液位
var CW_Conduct= []   // 冷却水电导率
var DW_Conduct= []   // 去离子水电导率
var F_Of_DW= []   // 去离子水流量
var VB01_Feedback= []   // VB01电动比例阀开度
var VB02_Feedback= []   // VB02电动比例阀开度
var T_Of_H01= []   // H01电加热器温度
var T_Of_H02= []   // H02电加热器温度
var T_Of_H03= []   // H03电加热器温度
var P01currentA= []   // P01主泵电机电流
var P02currentA= []   // P02主泵电机电流

var L_Buffer_Pool= []   // 缓冲水池液位
var BP_Conduct= []   // E2.喷淋水电导率
var Freq_M01_Feedback= []   // E2.M01风机运行频率
var Freq_M02_Feedback= []   // E2.M02风机运行频率
var Freq_M03_Feedback= []   // E2.M03风机运行频率
var Freq_M04_Feedback= []   // E2.M04风机运行频率
var Freq_M05_Feedback= []   // E2.M05风机运行频率
var Freq_M06_Feedback= []   // E2.M06风机运行频率

var Freq_E5_P01_Feedback= []   // E5.P01高压泵运行频率
var P_In_E5_PT01= []   // E5.PT01高压泵进水压力
var P_Out_E5_PT02= []   // E5.PT02高压泵出水压力
var P_In_E5_PT03= []   // E5.PT03反渗透二段膜组件进水压力
var P_In_E5_PT04= []   // E5.PT04反渗透三段膜组件进水压力
var P_discharge_E5_PT05= []   // E5.PT05反渗透浓水排放压力
var QIT01_Conduct= []   // E5.QIT01反渗透入水电导率
var QIT02_Conduct= []   // E5.QIT02反渗透产水电导率
var F_Of_FIT01= []   // E5.FIT01反渗透产水流量
var ORPO_electric= []   // E5.ORP0氧化还原电位
var F_Of_FIT02= []   // E5.FIT02反渗透浓水流量

var T_In_Hall= []   // E1.阀厅温度
var H_In_Hall= []   // E1.阀厅湿度
var Envi_temp= []   // E2.室外温度
var T_Condensation= []   // 凝露温度

var E1_VC03_fault= []
var L_Of_BufferTank_l= []
var L_Of_BufferTank_ll= []
var P_Of_BufferTank_hh= []
var P_Of_BufferTank_h= []
var L_Of_BufferTank_h= []
var P_Of_BufferTank_l= []
var P_Of_BufferTank_ll= []
var E1_VC03_FAULT= []
var L_Of_BufferTank_LLT= []
var BUFFER_LEVLE_LL_Button= []

var L_Of_SupplyTank_l= []
var E1_LIT01_break= []
var E1_LIT01_fault= []

var E1_DPIS01_dispressure_h= []
var E1_DPIS02_dispressure_h= []

var CDT_Of_DW_h= []
var CDT_Of_DW_hh= []

var E1_P01_WORKING= []
var E1_P01_MOTER_toohot= []
var E1_P01_E_L= []
var E1_P01_E_H= []
var E1_P01_LEAKAGE= []

var E1_P02_LEAKAGE= []
var E1_P02_E_L= []
var E1_P02_MOTER_toohot= []
var E1_P02_WORKING= []

var E1_H01_WORKING= []
var E1_H01_toohot= []
var E1_H01_TT06_break= []
var E1_H01_TT06_fault= []

var E1_H03_TT06_fault= []
var E1_H03_TT06_break= []
var E1_H03_toohot= []
var E1_H03_WORKING= []

var E1_H02_WORKING= []
var E1_H02_toohot= []
var E1_H02_TT06_break= []
var E1_H02_TT06_fault= []

var E3_J01_WORKING= []
var E2_J01_ALARM= []
var E3_J02_WORKING= []
var E2_J02_ALARM= []
var E3_J03_WORKING= []
var E2_J03_ALARM= []

var E2_Z01_ALARM= []

var TK1_AC1_POWER_fault= []
var TK1_BUS_fault= []
var TK1_AC2_POWER_fault= []
var E2_M01_FAULT= []
var E2_M01_TOO_HOT= []
var E2_M02_FAULT= []
var E2_M02_TOO_HOT= []

var TK2_AC1_POWER_fault= []
var TK2_BUS_fault= []
var TK2_AC2_POWER_fault= []
var E2_M03_FAULT= []
var E2_M03_TOO_HOT= []
var E2_M04_FAULT= []
var E2_M04_TOO_HOT= []

var TK3_AC1_POWER_fault= []
var TK3_BUS_fault= []
var TK3_AC2_POWER_fault= []
var E2_M05_FAULT= []
var E2_M05_TOO_HOT= []
var E2_M06_FAULT= []
var E2_M06_TOO_HOT= []

var E5_TT01_BREAK= []
var E5_TT01_FAULT= []

var BACK10115= []
var E5_J01_FAULT= []

var BACK10114= []
var E5_J02_FAULT= []

var E5_PV01_DIFF_HH= []
var E5_PV01_DIFF_H= []

var E5_PV02_DIFF_HH= []
var E5_PV02_DIFF_H= []

var E5_PV03_DIFF_HH= []
var E5_PV03_DIFF_H= []

let valveCoolingTableData = [];
// let dataLists = {}

// 获取设备固定信息
export const getNewData = (message) => {
    if(message){
        T_In_Valve.push(message.data['T_In_Valve'])
        T_Out_Valve.push(message.data['T_Out_Valve'])
        F_Of_CW.push(message.data['F_Of_CW'])
        P_In_Valve.push(message.data['P_In_Valve'])
        P_Out_Valve.push(message.data['P_Out_Valve'])
        L_In_Tank.push(message.data['L_In_Tank'])
        
        P_In_Tank.push(message.data['P_In_Tank'])
        L_rep_Tank.push(message.data['L_rep_Tank'])
        CW_Conduct.push(message.data['CW_Conduct'])
        DW_Conduct.push(message.data['DW_Conduct'])
        F_Of_DW.push(message.data['F_Of_DW'])
        VB01_Feedback.push(message.data['VB01_Feedback'])
        VB02_Feedback.push(message.data['VB02_Feedback'])
        T_Of_H01.push(message.data['T_Of_H01'])
        T_Of_H02.push(message.data['T_Of_H02'])
        T_Of_H03.push(message.data['T_Of_H03'])
        P01currentA.push(message.data['P01currentA'])
        P02currentA.push(message.data['P02currentA'])
        L_Buffer_Pool.push(message.data['L_Buffer_Pool'])
        BP_Conduct.push(message.data['BP_Conduct'])
        Freq_M01_Feedback.push(message.data['Freq_M01_Feedback'])
        Freq_M02_Feedback.push(message.data['Freq_M02_Feedback'])
        Freq_M03_Feedback.push(message.data['Freq_M03_Feedback'])
        Freq_M04_Feedback.push(message.data['Freq_M04_Feedback'])
        Freq_M05_Feedback.push(message.data['Freq_M05_Feedback'])
        Freq_M06_Feedback.push(message.data['Freq_M06_Feedback'])
        Freq_E5_P01_Feedback.push(message.data['Freq_E5_P01_Feedback'])
        P_In_E5_PT01.push(message.data['P_In_E5_PT01'])
        P_Out_E5_PT02.push(message.data['P_Out_E5_PT02'])
        P_In_E5_PT03.push(message.data['P_In_E5_PT03'])
        P_In_E5_PT04.push(message.data['P_In_E5_PT04'])
        P_discharge_E5_PT05.push(message.data['P_discharge_E5_PT05'])
        QIT01_Conduct.push(message.data['QIT01_Conduct'])
        QIT02_Conduct.push(message.data['QIT02_Conduct'])
        F_Of_FIT01.push(message.data['F_Of_FIT01'])
        ORPO_electric.push(message.data['ORPO_electric'])
        F_Of_FIT02.push(message.data['F_Of_FIT02'])
        T_In_Hall.push(message.data['T_In_Hall'])
        H_In_Hall.push(message.data['H_In_Hall'])
        Envi_temp.push(message.data['Envi_temp'])
        T_Condensation.push(message.data['T_Condensation'])

        E1_VC03_fault.push(message.data['E1_VC03_fault'])
        L_Of_BufferTank_l.push(message.data['L_Of_BufferTank_l'])
        L_Of_BufferTank_ll.push(message.data['L_Of_BufferTank_ll'])
        P_Of_BufferTank_hh.push(message.data['P_Of_BufferTank_hh'])
        P_Of_BufferTank_h.push(message.data['P_Of_BufferTank_h'])
        L_Of_BufferTank_h.push(message.data['L_Of_BufferTank_h'])
        P_Of_BufferTank_l.push(message.data['P_Of_BufferTank_l'])
        P_Of_BufferTank_ll.push(message.data['P_Of_BufferTank_ll'])
        E1_VC03_FAULT.push(message.data['E1_VC03_FAULT'])
        L_Of_BufferTank_LLT.push(message.data['L_Of_BufferTank_LLT'])
        BUFFER_LEVLE_LL_Button.push(message.data['BUFFER_LEVLE_LL_Button'])
        L_Of_SupplyTank_l.push(message.data['L_Of_SupplyTank_l'])
        E1_LIT01_break.push(message.data['E1_LIT01_break'])
        E1_LIT01_fault.push(message.data['E1_LIT01_fault'])
        E1_DPIS01_dispressure_h.push(message.data['E1_DPIS01_dispressure_h'])
        E1_DPIS02_dispressure_h.push(message.data['E1_DPIS02_dispressure_h'])
        CDT_Of_DW_h.push(message.data['CDT_Of_DW_h'])
        CDT_Of_DW_hh.push(message.data['CDT_Of_DW_hh'])
        E1_P01_WORKING.push(message.data['E1_P01_WORKING'])
        E1_P01_MOTER_toohot.push(message.data['E1_P01_MOTER_toohot'])
        E1_P01_E_L.push(message.data['E1_P01_E_H'])
        E1_P01_LEAKAGE.push(message.data['E1_P01_LEAKAGE'])
        E1_P02_LEAKAGE.push(message.data['E1_P02_LEAKAGE'])
        E1_P02_E_L.push(message.data['E1_P02_E_L'])
        E1_P02_MOTER_toohot.push(message.data['E1_P02_MOTER_toohot'])
        E1_P02_WORKING.push(message.data['E1_P02_WORKING'])
        E1_H01_WORKING.push(message.data['E1_H01_WORKING'])
        E1_H01_toohot.push(message.data['E1_H01_toohot'])
        E1_H01_TT06_break.push(message.data['E1_H01_TT06_break'])
        E1_H01_TT06_fault.push(message.data['E1_H01_TT06_fault'])
        E1_H03_TT06_fault.push(message.data['E1_H03_TT06_fault'])
        E1_H03_TT06_break.push(message.data['E1_H03_TT06_break'])
        E1_H03_toohot.push(message.data['E1_H03_toohot'])
        E1_H03_WORKING.push(message.data['E1_H03_WORKING'])
        E1_H02_WORKING.push(message.data['E1_H02_WORKING'])
        E1_H02_toohot.push(message.data['E1_H02_toohot'])
        E1_H02_TT06_break.push(message.data['E1_H02_TT06_break'])
        E1_H02_TT06_fault.push(message.data['E1_H02_TT06_fault'])
        E3_J01_WORKING.push(message.data['E3_J01_WORKING'])
        E2_J01_ALARM.push(message.data['E2_J01_ALARM'])
        E3_J02_WORKING.push(message.data['E3_J02_WORKING'])
        E2_J02_ALARM.push(message.data['E2_J02_ALARM'])
        E3_J03_WORKING.push(message.data['E3_J03_WORKING'])
        E2_J03_ALARM.push(message.data['E2_J03_ALARM'])
        E2_Z01_ALARM.push(message.data['E2_Z01_ALARM'])
        TK1_AC1_POWER_fault.push(message.data['TK1_AC1_POWER_fault'])
        TK1_BUS_fault.push(message.data['TK1_BUS_fault'])
        TK1_AC2_POWER_fault.push(message.data['TK1_AC2_POWER_fault'])
        E2_M01_FAULT.push(message.data['E2_M01_FAULT'])
        E2_M01_TOO_HOT.push(message.data['E2_M01_TOO_HOT'])
        E2_M02_FAULT.push(message.data['E2_M02_FAULT'])
        E2_M02_TOO_HOT.push(message.data['E2_M02_TOO_HOT'])
        TK2_AC1_POWER_fault.push(message.data['TK2_AC1_POWER_fault'])
        TK2_BUS_fault.push(message.data['TK2_BUS_fault'])
        TK2_AC2_POWER_fault.push(message.data['TK2_AC2_POWER_fault'])
        E2_M03_FAULT.push(message.data['E2_M03_FAULT'])
        E2_M03_TOO_HOT.push(message.data['E2_M03_TOO_HOT'])
        E2_M04_FAULT.push(message.data['E2_M04_FAULT'])
        E2_M04_TOO_HOT.push(message.data['E2_M04_TOO_HOT'])
        TK3_AC1_POWER_fault.push(message.data['TK3_AC1_POWER_fault'])
        TK3_BUS_fault.push(message.data['TK3_BUS_fault'])
        TK3_AC2_POWER_fault.push(message.data['TK3_AC2_POWER_fault'])
        E2_M05_FAULT.push(message.data['E2_M05_FAULT'])
        E2_M05_TOO_HOT.push(message.data['E2_M05_TOO_HOT'])
        E2_M06_FAULT.push(message.data['E2_M06_FAULT'])
        E2_M06_TOO_HOT.push(message.data['E2_M06_TOO_HOT'])
        E5_TT01_BREAK.push(message.data['E5_TT01_BREAK'])
        E5_TT01_FAULT.push(message.data['E5_TT01_FAULT'])
        BACK10115.push(message.data['BACK10115'])
        E5_J01_FAULT.push(message.data['E5_J01_FAULT'])
        BACK10114.push(message.data['BACK10114'])
        E5_J02_FAULT.push(message.data['E5_J02_FAULT'])
        E5_PV01_DIFF_HH.push(message.data['E5_PV01_DIFF_HH'])
        E5_PV01_DIFF_H.push(message.data['E5_PV01_DIFF_H'])
        E5_PV02_DIFF_HH.push(message.data['E5_PV02_DIFF_HH'])
        E5_PV02_DIFF_H.push(message.data['E5_PV02_DIFF_H'])
        E5_PV03_DIFF_HH.push(message.data['E5_PV03_DIFF_HH'])
        E5_PV03_DIFF_H.push(message.data['E5_PV03_DIFF_H'])

        valveCoolingTableData.push({
            uuid: message.uuid,
            time: message.time,
            action: message.action,
            // 进阀温度
            T_In_Valve:{
                real: T_In_Valve[T_In_Valve.length - 1],
                max: maxData(T_In_Valve).toFixed(1),
                min: minData(T_In_Valve).toFixed(1),
                avgD: avgData(T_In_Valve).toFixed(1),
            },
            // 出阀温度
            T_Out_Valve:{
                real: T_Out_Valve[T_Out_Valve.length - 1],
                max: maxData(T_Out_Valve).toFixed(1),
                min: minData(T_Out_Valve).toFixed(1),
                avgD: avgData(T_Out_Valve).toFixed(1),
            },
            // 冷却水流量
            F_Of_CW:{
                real: F_Of_CW[F_Of_CW.length - 1],
                max: maxData(F_Of_CW).toFixed(1),
                min: minData(F_Of_CW).toFixed(1),
                avgD: avgData(F_Of_CW).toFixed(1),
            },
            // 进阀压力
            P_In_Valve:{
                real: P_In_Valve[P_In_Valve.length - 1],
                max: maxData(P_In_Valve).toFixed(2),
                min: minData(P_In_Valve).toFixed(2),
                avgD: avgData(P_In_Valve).toFixed(2),
            },
            // 出阀压力
            P_Out_Valve:{
                real: P_Out_Valve[P_Out_Valve.length - 1],
                max: maxData(P_Out_Valve).toFixed(2),
                min: minData(P_Out_Valve).toFixed(2),
                avgD: avgData(P_Out_Valve).toFixed(2),
            },
            // 膨胀罐液位
            L_In_Tank:{
                real: L_In_Tank[L_In_Tank.length - 1],
                max: maxData(L_In_Tank).toFixed(1),
                min: minData(L_In_Tank).toFixed(1),
                avgD: avgData(L_In_Tank).toFixed(1),
            },
            // 膨胀罐压力
            P_In_Tank:{
                real: P_In_Tank[P_In_Tank.length - 1],
                max: maxData(P_In_Tank).toFixed(1),
                min: minData(P_In_Tank).toFixed(1),
                avgD: avgData(P_In_Tank).toFixed(1),
            },
            // 补水罐液位
            L_rep_Tank:{
                real: L_rep_Tank[L_rep_Tank.length - 1],
                max: maxData(L_rep_Tank).toFixed(1),
                min: minData(L_rep_Tank).toFixed(1),
                avgD: avgData(L_rep_Tank).toFixed(1),
            },
            // 冷却水电导率
            CW_Conduct:{
                real: CW_Conduct[CW_Conduct.length - 1],
                max: maxData(CW_Conduct).toFixed(1),
                min: minData(CW_Conduct).toFixed(1),
                avgD: avgData(CW_Conduct).toFixed(1),
            },
            // 去离子水电导率
            DW_Conduct:{
                real: DW_Conduct[DW_Conduct.length - 1],
                max: maxData(DW_Conduct).toFixed(1),
                min: minData(DW_Conduct).toFixed(1),
                avgD: avgData(DW_Conduct).toFixed(1),
            },
            // 去离子水流量
            F_Of_DW:{
                real: F_Of_DW[F_Of_DW.length - 1],
                max: maxData(F_Of_DW).toFixed(1),
                min: minData(F_Of_DW).toFixed(1),
                avgD: avgData(F_Of_DW).toFixed(1),
            },
            // E1.VB01电动比例阀开度
            VB01_Feedback:{
                real: VB01_Feedback[VB01_Feedback.length - 1],
                max: maxData(VB01_Feedback).toFixed(1),
                min: minData(VB01_Feedback).toFixed(1),
                avgD: avgData(VB01_Feedback).toFixed(1),
            },
            // E1.VB02电动比例阀开度
            VB02_Feedback:{
                real: VB02_Feedback[VB02_Feedback.length - 1],
                max: maxData(VB02_Feedback).toFixed(1),
                min: minData(VB02_Feedback).toFixed(1),
                avgD: avgData(VB02_Feedback).toFixed(1),
            },
            // E1.H01电加热器温度
            T_Of_H01:{
                real: T_Of_H01[T_Of_H01.length - 1],
                max: maxData(T_Of_H01).toFixed(1),
                min: minData(T_Of_H01).toFixed(1),
                avgD: avgData(T_Of_H01).toFixed(1),
            },
            // E1.H02电加热器温度
            T_Of_H02:{
                real: T_Of_H02[T_Of_H02.length - 1],
                max: maxData(T_Of_H02).toFixed(1),
                min: minData(T_Of_H02).toFixed(1),
                avgD: avgData(T_Of_H02).toFixed(1),
            },
            // E1.H03电加热器温度
            T_Of_H03:{
                real: T_Of_H03[T_Of_H03.length - 1],
                max: maxData(T_Of_H03).toFixed(1),
                min: minData(T_Of_H03).toFixed(1),
                avgD: avgData(T_Of_H03).toFixed(1),
            },
            // E1.P01主泵电机电流
            P01currentA:{
                real: P01currentA[P01currentA.length - 1],
                max: maxData(P01currentA).toFixed(1),
                min: minData(P01currentA).toFixed(1),
                avgD: avgData(P01currentA).toFixed(1),
            },
            // E1.P02主泵电机电流
            P02currentA:{
                real: P02currentA[P02currentA.length - 1],
                max: maxData(P02currentA).toFixed(1),
                min: minData(P02currentA).toFixed(1),
                avgD: avgData(P02currentA).toFixed(1),
            },
            // E2.缓冲水池液位
            L_Buffer_Pool:{
                real: L_Buffer_Pool[L_Buffer_Pool.length - 1],
                max: maxData(L_Buffer_Pool).toFixed(1),
                min: minData(L_Buffer_Pool).toFixed(1),
                avgD: avgData(L_Buffer_Pool).toFixed(1),
            },
            // E2.喷淋水电导率
            BP_Conduct:{
                real: BP_Conduct[BP_Conduct.length - 1],
                max: maxData(BP_Conduct).toFixed(1),
                min: minData(BP_Conduct).toFixed(1),
                avgD: avgData(BP_Conduct).toFixed(1),
            },
            // E2.M01风机运行频率
            Freq_M01_Feedback:{
                real: Freq_M01_Feedback[Freq_M01_Feedback.length - 1],
                max: maxData(Freq_M01_Feedback).toFixed(1),
                min: minData(Freq_M01_Feedback).toFixed(1),
                avgD: avgData(Freq_M01_Feedback).toFixed(1),
            },
            // E2.M02风机运行频率
            Freq_M02_Feedback:{
                real: Freq_M02_Feedback[Freq_M02_Feedback.length - 1],
                max: maxData(Freq_M02_Feedback).toFixed(1),
                min: minData(Freq_M02_Feedback).toFixed(1),
                avgD: avgData(Freq_M02_Feedback).toFixed(1),
            },
            // E2.M03风机运行频率
            Freq_M03_Feedback:{
                real: Freq_M03_Feedback[Freq_M03_Feedback.length - 1],
                max: maxData(Freq_M03_Feedback).toFixed(1),
                min: minData(Freq_M03_Feedback).toFixed(1),
                avgD: avgData(Freq_M03_Feedback).toFixed(1),
            },
            // E2.M04风机运行频率
            Freq_M04_Feedback:{
                real: Freq_M04_Feedback[Freq_M04_Feedback.length - 1],
                max: maxData(Freq_M04_Feedback).toFixed(1),
                min: minData(Freq_M04_Feedback).toFixed(1),
                avgD: avgData(Freq_M04_Feedback).toFixed(1),
            },
            // E2.M05风机运行频率
            Freq_M05_Feedback:{
                real: Freq_M05_Feedback[Freq_M05_Feedback.length - 1],
                max: maxData(Freq_M05_Feedback).toFixed(1),
                min: minData(Freq_M05_Feedback).toFixed(1),
                avgD: avgData(Freq_M05_Feedback).toFixed(1),
            },
            // E2.M06风机运行频率
            Freq_M06_Feedback:{
                real: Freq_M06_Feedback[Freq_M06_Feedback.length - 1],
                max: maxData(Freq_M06_Feedback).toFixed(1),
                min: minData(Freq_M06_Feedback).toFixed(1),
                avgD: avgData(Freq_M06_Feedback).toFixed(1),
            },
            // E5.P01高压泵运行频率
            Freq_E5_P01_Feedback:{
                real: Freq_E5_P01_Feedback[Freq_E5_P01_Feedback.length - 1],
                max: maxData(Freq_E5_P01_Feedback).toFixed(1),
                min: minData(Freq_E5_P01_Feedback).toFixed(1),
                avgD: avgData(Freq_E5_P01_Feedback).toFixed(1),
            },
            // E5.PT01高压泵进水压力
            P_In_E5_PT01:{
                real: P_In_E5_PT01[P_In_E5_PT01.length - 1],
                max: maxData(P_In_E5_PT01).toFixed(1),
                min: minData(P_In_E5_PT01).toFixed(1),
                avgD: avgData(P_In_E5_PT01).toFixed(1),
            },
            // E5.PT02高压泵出水压力
            P_Out_E5_PT02:{
                real: P_Out_E5_PT02[P_Out_E5_PT02.length - 1],
                max: maxData(P_Out_E5_PT02).toFixed(1),
                min: minData(P_Out_E5_PT02).toFixed(1),
                avgD: avgData(P_Out_E5_PT02).toFixed(1),
            },
            // E5.PT03反渗透二段膜组件进水压力
            P_In_E5_PT03:{
                real: P_In_E5_PT03[P_In_E5_PT03.length - 1],
                max: maxData(P_In_E5_PT03).toFixed(1),
                min: minData(P_In_E5_PT03).toFixed(1),
                avgD: avgData(P_In_E5_PT03).toFixed(1),
            },
            // E5.PT04反渗透三段膜组件进水压力
            P_In_E5_PT04:{
                real: P_In_E5_PT04[P_In_E5_PT04.length - 1],
                max: maxData(P_In_E5_PT04).toFixed(1),
                min: minData(P_In_E5_PT04).toFixed(1),
                avgD: avgData(P_In_E5_PT04).toFixed(1),
            },
            // E5.PT05反渗透浓水排放压力
            P_discharge_E5_PT05:{
                real: P_discharge_E5_PT05[P_discharge_E5_PT05.length - 1],
                max: maxData(P_discharge_E5_PT05).toFixed(1),
                min: minData(P_discharge_E5_PT05).toFixed(1),
                avgD: avgData(P_discharge_E5_PT05).toFixed(1),
            },
            // E5.QIT01反渗透入水电导率
            QIT01_Conduct:{
                real: QIT01_Conduct[QIT01_Conduct.length - 1],
                max: maxData(QIT01_Conduct).toFixed(1),
                min: minData(QIT01_Conduct).toFixed(1),
                avgD: avgData(QIT01_Conduct).toFixed(1),
            },
            // E5.QIT02反渗透产水电导率
            QIT02_Conduct:{
                real: QIT02_Conduct[QIT02_Conduct.length - 1],
                max: maxData(QIT02_Conduct).toFixed(1),
                min: minData(QIT02_Conduct).toFixed(1),
                avgD: avgData(QIT02_Conduct).toFixed(1),
            },
            // E5.FIT01反渗透产水流量
            F_Of_FIT01:{
                real: F_Of_FIT01[F_Of_FIT01.length - 1],
                max: maxData(F_Of_FIT01).toFixed(1),
                min: minData(F_Of_FIT01).toFixed(1),
                avgD: avgData(F_Of_FIT01).toFixed(1),
            },
            // E5.ORP0氧化还原电位
            ORPO_electric:{
                real: ORPO_electric[ORPO_electric.length - 1],
                max: maxData(ORPO_electric).toFixed(1),
                min: minData(ORPO_electric).toFixed(1),
                avgD: avgData(ORPO_electric).toFixed(1),
            },
            // E5.FIT02反渗透浓水流量
            F_Of_FIT02:{
                real: F_Of_FIT02[F_Of_FIT02.length - 1],
                max: maxData(F_Of_FIT02).toFixed(1),
                min: minData(F_Of_FIT02).toFixed(1),
                avgD: avgData(F_Of_FIT02).toFixed(1),
            },
            // E1.阀厅温度
            T_In_Hall:{
                real: T_In_Hall[T_In_Hall.length - 1],
                max: maxData(T_In_Hall).toFixed(1),
                min: minData(T_In_Hall).toFixed(1),
                avgD: avgData(T_In_Hall).toFixed(1),
            },
            // E1.阀厅湿度
            H_In_Hall:{
                real: H_In_Hall[H_In_Hall.length - 1],
                max: maxData(H_In_Hall).toFixed(1),
                min: minData(H_In_Hall).toFixed(1),
                avgD: avgData(H_In_Hall).toFixed(1),
            },
            // E2.室外温度
            Envi_temp:{
                real: Envi_temp[Envi_temp.length - 1],
                max: maxData(Envi_temp).toFixed(1),
                min: minData(Envi_temp).toFixed(1),
                avgD: avgData(Envi_temp).toFixed(1),
            },
            // 凝露温度
            T_Condensation:{
                real: T_Condensation[T_Condensation.length - 1],
                max: maxData(T_Condensation).toFixed(1),
                min: minData(T_Condensation).toFixed(1),
                avgD: avgData(T_Condensation).toFixed(1),
            },
            //
            E1_VC03_fault:{
                real: E1_VC03_fault[E1_VC03_fault.length - 1],
                max: maxData(E1_VC03_fault).toFixed(1),
                min: minData(E1_VC03_fault).toFixed(1),
                avgD: avgData(E1_VC03_fault).toFixed(1),
            },
            //
            L_Of_BufferTank_l:{
                real: L_Of_BufferTank_l[L_Of_BufferTank_l.length - 1],
                max: maxData(L_Of_BufferTank_l).toFixed(1),
                min: minData(L_Of_BufferTank_l).toFixed(1),
                avgD: avgData(L_Of_BufferTank_l).toFixed(1),
            },
            //
            L_Of_BufferTank_ll:{
                real: L_Of_BufferTank_ll[L_Of_BufferTank_ll.length - 1],
                max: maxData(L_Of_BufferTank_ll).toFixed(1),
                min: minData(L_Of_BufferTank_ll).toFixed(1),
                avgD: avgData(L_Of_BufferTank_ll).toFixed(1),
            },
            //
            P_Of_BufferTank_hh:{
                real: P_Of_BufferTank_hh[P_Of_BufferTank_hh.length - 1],
                max: maxData(P_Of_BufferTank_hh).toFixed(1),
                min: minData(P_Of_BufferTank_hh).toFixed(1),
                avgD: avgData(P_Of_BufferTank_hh).toFixed(1),
            },
            //
            P_Of_BufferTank_h:{
                real: P_Of_BufferTank_h[P_Of_BufferTank_h.length - 1],
                max: maxData(P_Of_BufferTank_h).toFixed(1),
                min: minData(P_Of_BufferTank_h).toFixed(1),
                avgD: avgData(P_Of_BufferTank_h).toFixed(1),
            },
            //
            L_Of_BufferTank_h:{
                real: L_Of_BufferTank_h[L_Of_BufferTank_h.length - 1],
                max: maxData(L_Of_BufferTank_h).toFixed(1),
                min: minData(L_Of_BufferTank_h).toFixed(1),
                avgD: avgData(L_Of_BufferTank_h).toFixed(1),
            },
            //
            P_Of_BufferTank_l:{
                real: P_Of_BufferTank_l[P_Of_BufferTank_l.length - 1],
                max: maxData(P_Of_BufferTank_l).toFixed(1),
                min: minData(P_Of_BufferTank_l).toFixed(1),
                avgD: avgData(P_Of_BufferTank_l).toFixed(1),
            },
            //
            P_Of_BufferTank_ll:{
                real: P_Of_BufferTank_ll[P_Of_BufferTank_ll.length - 1],
                max: maxData(P_Of_BufferTank_ll).toFixed(1),
                min: minData(P_Of_BufferTank_ll).toFixed(1),
                avgD: avgData(P_Of_BufferTank_ll).toFixed(1),
            },
            //
            E1_VC03_FAULT:{
                real: E1_VC03_FAULT[E1_VC03_FAULT.length - 1],
                max: maxData(E1_VC03_FAULT).toFixed(1),
                min: minData(E1_VC03_FAULT).toFixed(1),
                avgD: avgData(E1_VC03_FAULT).toFixed(1),
            },
            //
            L_Of_BufferTank_LLT:{
                real: L_Of_BufferTank_LLT[L_Of_BufferTank_LLT.length - 1],
                max: maxData(L_Of_BufferTank_LLT).toFixed(1),
                min: minData(L_Of_BufferTank_LLT).toFixed(1),
                avgD: avgData(L_Of_BufferTank_LLT).toFixed(1),
            },
            //
            BUFFER_LEVLE_LL_Button:{
                real: BUFFER_LEVLE_LL_Button[BUFFER_LEVLE_LL_Button.length - 1],
                max: maxData(BUFFER_LEVLE_LL_Button).toFixed(1),
                min: minData(BUFFER_LEVLE_LL_Button).toFixed(1),
                avgD: avgData(BUFFER_LEVLE_LL_Button).toFixed(1),
            },
            //
            L_Of_SupplyTank_l:{
                real: L_Of_SupplyTank_l[L_Of_SupplyTank_l.length - 1],
                max: maxData(L_Of_SupplyTank_l).toFixed(1),
                min: minData(L_Of_SupplyTank_l).toFixed(1),
                avgD: avgData(L_Of_SupplyTank_l).toFixed(1),
            },
            //
            E1_LIT01_break:{
                real: E1_LIT01_break[E1_LIT01_break.length - 1],
                max: maxData(E1_LIT01_break).toFixed(1),
                min: minData(E1_LIT01_break).toFixed(1),
                avgD: avgData(E1_LIT01_break).toFixed(1),
            },
            //
            E1_LIT01_fault:{
                real: E1_LIT01_fault[E1_LIT01_fault.length - 1],
                max: maxData(E1_LIT01_fault).toFixed(1),
                min: minData(E1_LIT01_fault).toFixed(1),
                avgD: avgData(E1_LIT01_fault).toFixed(1),
            },
            //
            E1_DPIS01_dispressure_h:{
                real: E1_DPIS01_dispressure_h[E1_DPIS01_dispressure_h.length - 1],
                max: maxData(E1_DPIS01_dispressure_h).toFixed(1),
                min: minData(E1_DPIS01_dispressure_h).toFixed(1),
                avgD: avgData(E1_DPIS01_dispressure_h).toFixed(1),
            },
            //
            E1_DPIS02_dispressure_h:{
                real: E1_DPIS02_dispressure_h[E1_DPIS02_dispressure_h.length - 1],
                max: maxData(E1_DPIS02_dispressure_h).toFixed(1),
                min: minData(E1_DPIS02_dispressure_h).toFixed(1),
                avgD: avgData(E1_DPIS02_dispressure_h).toFixed(1),
            },
            //
            CDT_Of_DW_h:{
                real: CDT_Of_DW_h[CDT_Of_DW_h.length - 1],
                max: maxData(CDT_Of_DW_h).toFixed(1),
                min: minData(CDT_Of_DW_h).toFixed(1),
                avgD: avgData(CDT_Of_DW_h).toFixed(1),
            },
            //
            CDT_Of_DW_hh:{
                real: CDT_Of_DW_hh[CDT_Of_DW_hh.length - 1],
                max: maxData(CDT_Of_DW_hh).toFixed(1),
                min: minData(CDT_Of_DW_hh).toFixed(1),
                avgD: avgData(CDT_Of_DW_hh).toFixed(1),
            },
            //
            E1_P01_WORKING:{
                real: E1_P01_WORKING[E1_P01_WORKING.length - 1],
                max: maxData(E1_P01_WORKING).toFixed(1),
                min: minData(E1_P01_WORKING).toFixed(1),
                avgD: avgData(E1_P01_WORKING).toFixed(1),
            },
            //
            E1_P01_MOTER_toohot:{
                real: E1_P01_MOTER_toohot[E1_P01_MOTER_toohot.length - 1],
                max: maxData(E1_P01_MOTER_toohot).toFixed(1),
                min: minData(E1_P01_MOTER_toohot).toFixed(1),
                avgD: avgData(E1_P01_MOTER_toohot).toFixed(1),
            },
            //
            E1_P01_E_L:{
                real: E1_P01_E_L[E1_P01_E_L.length - 1],
                max: maxData(E1_P01_E_L).toFixed(1),
                min: minData(E1_P01_E_L).toFixed(1),
                avgD: avgData(E1_P01_E_L).toFixed(1),
            },
            //
            E1_P01_E_H:{
                real: E1_P01_E_H[E1_P01_E_H.length - 1],
                max: maxData(E1_P01_E_H).toFixed(1),
                min: minData(E1_P01_E_H).toFixed(1),
                avgD: avgData(E1_P01_E_H).toFixed(1),
            },
            //
            E1_P01_LEAKAGE:{
                real: E1_P01_LEAKAGE[E1_P01_LEAKAGE.length - 1],
                max: maxData(E1_P01_LEAKAGE).toFixed(1),
                min: minData(E1_P01_LEAKAGE).toFixed(1),
                avgD: avgData(E1_P01_LEAKAGE).toFixed(1),
            },
            //
            E1_P02_LEAKAGE:{
                real: E1_P02_LEAKAGE[E1_P02_LEAKAGE.length - 1],
                max: maxData(E1_P02_LEAKAGE).toFixed(1),
                min: minData(E1_P02_LEAKAGE).toFixed(1),
                avgD: avgData(E1_P02_LEAKAGE).toFixed(1),
            },
            //
            E1_P02_E_L:{
                real: E1_P02_E_L[E1_P02_E_L.length - 1],
                max: maxData(E1_P02_E_L).toFixed(1),
                min: minData(E1_P02_E_L).toFixed(1),
                avgD: avgData(E1_P02_E_L).toFixed(1),
            },
            //
            E1_P02_MOTER_toohot:{
                real: E1_P02_MOTER_toohot[E1_P02_MOTER_toohot.length - 1],
                max: maxData(E1_P02_MOTER_toohot).toFixed(1),
                min: minData(E1_P02_MOTER_toohot).toFixed(1),
                avgD: avgData(E1_P02_MOTER_toohot).toFixed(1),
            },
            //
            E1_P02_WORKING:{
                real: E1_P02_WORKING[E1_P02_WORKING.length - 1],
                max: maxData(E1_P02_WORKING).toFixed(1),
                min: minData(E1_P02_WORKING).toFixed(1),
                avgD: avgData(E1_P02_WORKING).toFixed(1),
            },
            //
            E1_H01_WORKING:{
                real: E1_H01_WORKING[E1_H01_WORKING.length - 1],
                max: maxData(E1_H01_WORKING).toFixed(1),
                min: minData(E1_H01_WORKING).toFixed(1),
                avgD: avgData(E1_H01_WORKING).toFixed(1),
            },
            //
            E1_H01_toohot:{
                real: E1_H01_toohot[E1_H01_toohot.length - 1],
                max: maxData(E1_H01_toohot).toFixed(1),
                min: minData(E1_H01_toohot).toFixed(1),
                avgD: avgData(E1_H01_toohot).toFixed(1),
            },
            //
            E1_H01_TT06_break:{
                real: E1_H01_TT06_break[E1_H01_TT06_break.length - 1],
                max: maxData(E1_H01_TT06_break).toFixed(1),
                min: minData(E1_H01_TT06_break).toFixed(1),
                avgD: avgData(E1_H01_TT06_break).toFixed(1),
            },
            //
            E1_H01_TT06_fault:{
                real: E1_H01_TT06_fault[E1_H01_TT06_fault.length - 1],
                max: maxData(E1_H01_TT06_fault).toFixed(1),
                min: minData(E1_H01_TT06_fault).toFixed(1),
                avgD: avgData(E1_H01_TT06_fault).toFixed(1),
            },
            //
            E1_H03_TT06_fault:{
                real: E1_H03_TT06_fault[E1_H03_TT06_fault.length - 1],
                max: maxData(E1_H03_TT06_fault).toFixed(1),
                min: minData(E1_H03_TT06_fault).toFixed(1),
                avgD: avgData(E1_H03_TT06_fault).toFixed(1),
            },
            //
            E1_H03_TT06_break:{
                real: E1_H03_TT06_break[E1_H03_TT06_break.length - 1],
                max: maxData(E1_H03_TT06_break).toFixed(1),
                min: minData(E1_H03_TT06_break).toFixed(1),
                avgD: avgData(E1_H03_TT06_break).toFixed(1),
            },
            //
            E1_H03_toohot:{
                real: E1_H03_toohot[E1_H03_toohot.length - 1],
                max: maxData(E1_H03_toohot).toFixed(1),
                min: minData(E1_H03_toohot).toFixed(1),
                avgD: avgData(E1_H03_toohot).toFixed(1),
            },
            //
            E1_H03_WORKING:{
                real: E1_H03_WORKING[E1_H03_WORKING.length - 1],
                max: maxData(E1_H03_WORKING).toFixed(1),
                min: minData(E1_H03_WORKING).toFixed(1),
                avgD: avgData(E1_H03_WORKING).toFixed(1),
            },
            //
            E1_H02_WORKING:{
                real: E1_H02_WORKING[E1_H02_WORKING.length - 1],
                max: maxData(E1_H02_WORKING).toFixed(1),
                min: minData(E1_H02_WORKING).toFixed(1),
                avgD: avgData(E1_H02_WORKING).toFixed(1),
            },
            //
            E1_H02_toohot:{
                real: E1_H02_toohot[E1_H02_toohot.length - 1],
                max: maxData(E1_H02_toohot).toFixed(1),
                min: minData(E1_H02_toohot).toFixed(1),
                avgD: avgData(E1_H02_toohot).toFixed(1),
            },
            //
            E1_H02_TT06_break:{
                real: E1_H02_TT06_break[E1_H02_TT06_break.length - 1],
                max: maxData(E1_H02_TT06_break).toFixed(1),
                min: minData(E1_H02_TT06_break).toFixed(1),
                avgD: avgData(E1_H02_TT06_break).toFixed(1),
            },
            //
            E1_H02_TT06_fault:{
                real: E1_H02_TT06_fault[E1_H02_TT06_fault.length - 1],
                max: maxData(E1_H02_TT06_fault).toFixed(1),
                min: minData(E1_H02_TT06_fault).toFixed(1),
                avgD: avgData(E1_H02_TT06_fault).toFixed(1),
            },
            //
            E3_J01_WORKING:{
                real: E3_J01_WORKING[E3_J01_WORKING.length - 1],
                max: maxData(E3_J01_WORKING).toFixed(1),
                min: minData(E3_J01_WORKING).toFixed(1),
                avgD: avgData(E3_J01_WORKING).toFixed(1),
            },
            //
            E2_J01_ALARM:{
                real: E2_J01_ALARM[E2_J01_ALARM.length - 1],
                max: maxData(E2_J01_ALARM).toFixed(1),
                min: minData(E2_J01_ALARM).toFixed(1),
                avgD: avgData(E2_J01_ALARM).toFixed(1),
            },
            //
            E3_J02_WORKING:{
                real: E3_J02_WORKING[E3_J02_WORKING.length - 1],
                max: maxData(E3_J02_WORKING).toFixed(1),
                min: minData(E3_J02_WORKING).toFixed(1),
                avgD: avgData(E3_J02_WORKING).toFixed(1),
            },
            //
            E2_J02_ALARM:{
                real: E2_J02_ALARM[E2_J02_ALARM.length - 1],
                max: maxData(E2_J02_ALARM).toFixed(1),
                min: minData(E2_J02_ALARM).toFixed(1),
                avgD: avgData(E2_J02_ALARM).toFixed(1),
            },
            //
            E3_J03_WORKING:{
                real: E3_J03_WORKING[E3_J03_WORKING.length - 1],
                max: maxData(E3_J03_WORKING).toFixed(1),
                min: minData(E3_J03_WORKING).toFixed(1),
                avgD: avgData(E3_J03_WORKING).toFixed(1),
            },
            //
            E2_J03_ALARM:{
                real: E2_J03_ALARM[E2_J03_ALARM.length - 1],
                max: maxData(E2_J03_ALARM).toFixed(1),
                min: minData(E2_J03_ALARM).toFixed(1),
                avgD: avgData(E2_J03_ALARM).toFixed(1),
            },
            //
            E2_Z01_ALARM:{
                real: E2_Z01_ALARM[E2_Z01_ALARM.length - 1],
                max: maxData(E2_Z01_ALARM).toFixed(1),
                min: minData(E2_Z01_ALARM).toFixed(1),
                avgD: avgData(E2_Z01_ALARM).toFixed(1),
            },
            //
            TK1_AC1_POWER_fault:{
                real: TK1_AC1_POWER_fault[TK1_AC1_POWER_fault.length - 1],
                max: maxData(TK1_AC1_POWER_fault).toFixed(1),
                min: minData(TK1_AC1_POWER_fault).toFixed(1),
                avgD: avgData(TK1_AC1_POWER_fault).toFixed(1),
            },
            //
            TK1_BUS_fault:{
                real: TK1_BUS_fault[TK1_BUS_fault.length - 1],
                max: maxData(TK1_BUS_fault).toFixed(1),
                min: minData(TK1_BUS_fault).toFixed(1),
                avgD: avgData(TK1_BUS_fault).toFixed(1),
            },
            //
            TK1_AC2_POWER_fault:{
                real: TK1_AC2_POWER_fault[TK1_AC2_POWER_fault.length - 1],
                max: maxData(TK1_AC2_POWER_fault).toFixed(1),
                min: minData(TK1_AC2_POWER_fault).toFixed(1),
                avgD: avgData(TK1_AC2_POWER_fault).toFixed(1),
            },
            //
            E2_M01_FAULT:{
                real: E2_M01_FAULT[E2_M01_FAULT.length - 1],
                max: maxData(E2_M01_FAULT).toFixed(1),
                min: minData(E2_M01_FAULT).toFixed(1),
                avgD: avgData(E2_M01_FAULT).toFixed(1),
            },
            //
            E2_M01_TOO_HOT:{
                real: E2_M01_TOO_HOT[E2_M01_TOO_HOT.length - 1],
                max: maxData(E2_M01_TOO_HOT).toFixed(1),
                min: minData(E2_M01_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M01_TOO_HOT).toFixed(1),
            },
            //
            E2_M02_FAULT:{
                real: E2_M02_FAULT[E2_M02_FAULT.length - 1],
                max: maxData(E2_M02_FAULT).toFixed(1),
                min: minData(E2_M02_FAULT).toFixed(1),
                avgD: avgData(E2_M02_FAULT).toFixed(1),
            },
            //
            E2_M02_TOO_HOT:{
                real: E2_M02_TOO_HOT[E2_M02_TOO_HOT.length - 1],
                max: maxData(E2_M02_TOO_HOT).toFixed(1),
                min: minData(E2_M02_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M02_TOO_HOT).toFixed(1),
            },
            //
            TK2_AC1_POWER_fault:{
                real: TK2_AC1_POWER_fault[TK2_AC1_POWER_fault.length - 1],
                max: maxData(TK2_AC1_POWER_fault).toFixed(1),
                min: minData(TK2_AC1_POWER_fault).toFixed(1),
                avgD: avgData(TK2_AC1_POWER_fault).toFixed(1),
            },
            //
            TK2_BUS_fault:{
                real: TK2_BUS_fault[TK2_BUS_fault.length - 1],
                max: maxData(TK2_BUS_fault).toFixed(1),
                min: minData(TK2_BUS_fault).toFixed(1),
                avgD: avgData(TK2_BUS_fault).toFixed(1),
            },
            //
            TK2_AC2_POWER_fault:{
                real: TK2_AC2_POWER_fault[TK2_AC2_POWER_fault.length - 1],
                max: maxData(TK2_AC2_POWER_fault).toFixed(1),
                min: minData(TK2_AC2_POWER_fault).toFixed(1),
                avgD: avgData(TK2_AC2_POWER_fault).toFixed(1),
            },
            //
            E2_M03_FAULT:{
                real: E2_M03_FAULT[E2_M03_FAULT.length - 1],
                max: maxData(E2_M03_FAULT).toFixed(1),
                min: minData(E2_M03_FAULT).toFixed(1),
                avgD: avgData(E2_M03_FAULT).toFixed(1),
            },
            //
            E2_M03_TOO_HOT:{
                real: E2_M03_TOO_HOT[E2_M03_TOO_HOT.length - 1],
                max: maxData(E2_M03_TOO_HOT).toFixed(1),
                min: minData(E2_M03_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M03_TOO_HOT).toFixed(1),
            },
            //
            E2_M04_FAULT:{
                real: E2_M04_FAULT[E2_M04_FAULT.length - 1],
                max: maxData(E2_M04_FAULT).toFixed(1),
                min: minData(E2_M04_FAULT).toFixed(1),
                avgD: avgData(E2_M04_FAULT).toFixed(1),
            },
            //
            E2_M04_TOO_HOT:{
                real: E2_M04_TOO_HOT[E2_M04_TOO_HOT.length - 1],
                max: maxData(E2_M04_TOO_HOT).toFixed(1),
                min: minData(E2_M04_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M04_TOO_HOT).toFixed(1),
            },
            //
            TK3_AC1_POWER_fault:{
                real: TK3_AC1_POWER_fault[TK3_AC1_POWER_fault.length - 1],
                max: maxData(TK3_AC1_POWER_fault).toFixed(1),
                min: minData(TK3_AC1_POWER_fault).toFixed(1),
                avgD: avgData(TK3_AC1_POWER_fault).toFixed(1),
            },
            //
            TK3_BUS_fault:{
                real: TK3_BUS_fault[TK3_BUS_fault.length - 1],
                max: maxData(TK3_BUS_fault).toFixed(1),
                min: minData(TK3_BUS_fault).toFixed(1),
                avgD: avgData(TK3_BUS_fault).toFixed(1),
            },
            //
            TK3_AC2_POWER_fault:{
                real: TK3_AC2_POWER_fault[TK3_AC2_POWER_fault.length - 1],
                max: maxData(TK3_AC2_POWER_fault).toFixed(1),
                min: minData(TK3_AC2_POWER_fault).toFixed(1),
                avgD: avgData(TK3_AC2_POWER_fault).toFixed(1),
            },
            //
            E2_M05_FAULT:{
                real: E2_M05_FAULT[E2_M05_FAULT.length - 1],
                max: maxData(E2_M05_FAULT).toFixed(1),
                min: minData(E2_M05_FAULT).toFixed(1),
                avgD: avgData(E2_M05_FAULT).toFixed(1),
            },
            //
            E2_M05_TOO_HOT:{
                real: E2_M05_TOO_HOT[E2_M05_TOO_HOT.length - 1],
                max: maxData(E2_M05_TOO_HOT).toFixed(1),
                min: minData(E2_M05_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M05_TOO_HOT).toFixed(1),
            },
            //
            E2_M06_FAULT:{
                real: E2_M06_FAULT[E2_M06_FAULT.length - 1],
                max: maxData(E2_M06_FAULT).toFixed(1),
                min: minData(E2_M06_FAULT).toFixed(1),
                avgD: avgData(E2_M06_FAULT).toFixed(1),
            },
            //
            E2_M06_TOO_HOT:{
                real: E2_M06_TOO_HOT[E2_M06_TOO_HOT.length - 1],
                max: maxData(E2_M06_TOO_HOT).toFixed(1),
                min: minData(E2_M06_TOO_HOT).toFixed(1),
                avgD: avgData(E2_M06_TOO_HOT).toFixed(1),
            },
            //
            E5_TT01_BREAK:{
                real: E5_TT01_BREAK[E5_TT01_BREAK.length - 1],
                max: maxData(E5_TT01_BREAK).toFixed(1),
                min: minData(E5_TT01_BREAK).toFixed(1),
                avgD: avgData(E5_TT01_BREAK).toFixed(1),
            },
            //
            E5_TT01_FAULT:{
                real: E5_TT01_FAULT[E5_TT01_FAULT.length - 1],
                max: maxData(E5_TT01_FAULT).toFixed(1),
                min: minData(E5_TT01_FAULT).toFixed(1),
                avgD: avgData(E5_TT01_FAULT).toFixed(1),
            },
            //
            BACK10115:{
                real: BACK10115[BACK10115.length - 1],
                max: maxData(BACK10115).toFixed(1),
                min: minData(BACK10115).toFixed(1),
                avgD: avgData(BACK10115).toFixed(1),
            },
            //
            E5_J01_FAULT:{
                real: E5_J01_FAULT[E5_J01_FAULT.length - 1],
                max: maxData(E5_J01_FAULT).toFixed(1),
                min: minData(E5_J01_FAULT).toFixed(1),
                avgD: avgData(E5_J01_FAULT).toFixed(1),
            },
            //
            BACK10114:{
                real: BACK10114[BACK10114.length - 1],
                max: maxData(BACK10114).toFixed(1),
                min: minData(BACK10114).toFixed(1),
                avgD: avgData(BACK10114).toFixed(1),
            },
            //
            E5_J02_FAULT:{
                real: E5_J02_FAULT[E5_J02_FAULT.length - 1],
                max: maxData(E5_J02_FAULT).toFixed(1),
                min: minData(E5_J02_FAULT).toFixed(1),
                avgD: avgData(E5_J02_FAULT).toFixed(1),
            },
            //
            E5_PV01_DIFF_HH:{
                real: E5_PV01_DIFF_HH[E5_PV01_DIFF_HH.length - 1],
                max: maxData(E5_PV01_DIFF_HH).toFixed(1),
                min: minData(E5_PV01_DIFF_HH).toFixed(1),
                avgD: avgData(E5_PV01_DIFF_HH).toFixed(1),
            },
            //
            E5_PV01_DIFF_H:{
                real: E5_PV01_DIFF_H[E5_PV01_DIFF_H.length - 1],
                max: maxData(E5_PV01_DIFF_H).toFixed(1),
                min: minData(E5_PV01_DIFF_H).toFixed(1),
                avgD: avgData(E5_PV01_DIFF_H).toFixed(1),
            },
            //
            E5_PV02_DIFF_HH:{
                real: E5_PV02_DIFF_HH[E5_PV02_DIFF_HH.length - 1],
                max: maxData(E5_PV02_DIFF_HH).toFixed(1),
                min: minData(E5_PV02_DIFF_HH).toFixed(1),
                avgD: avgData(E5_PV02_DIFF_HH).toFixed(1),
            },
            //
            E5_PV02_DIFF_H:{
                real: E5_PV02_DIFF_H[E5_PV02_DIFF_H.length - 1],
                max: maxData(E5_PV02_DIFF_H).toFixed(1),
                min: minData(E5_PV02_DIFF_H).toFixed(1),
                avgD: avgData(E5_PV02_DIFF_H).toFixed(1),
            },
            //
            E5_PV03_DIFF_HH:{
                real: E5_PV03_DIFF_HH[E5_PV03_DIFF_HH.length - 1],
                max: maxData(E5_PV03_DIFF_HH).toFixed(1),
                min: minData(E5_PV03_DIFF_HH).toFixed(1),
                avgD: avgData(E5_PV03_DIFF_HH).toFixed(1),
            },
            //
            E5_PV03_DIFF_H:{
                real: E5_PV03_DIFF_H[E5_PV03_DIFF_H.length - 1],
                max: maxData(E5_PV03_DIFF_H).toFixed(1),
                min: minData(E5_PV03_DIFF_H).toFixed(1),
                avgD: avgData(E5_PV03_DIFF_H).toFixed(1),
            }

        })
    }
    return valveCoolingTableData.length > 100 ? valveCoolingTableData.slice(valveCoolingTableData.length-100,valveCoolingTableData.length-1) : valveCoolingTableData
}

// 获取固定设备的基本信息
export const getInfo = (list,message) => {
    var resultLists = {}
    var timers = []

    for(let i=0;i<message.length;i++){
        
        const item = message[i].data

        timers.push(message[i].create_date)

        if(!resultLists[list.key]){
            resultLists[list.key] = []
        }

        resultLists[list.key].push(Number(item[list.key]).toFixed(2))
    }
    return {timers: timers,resultLists:resultLists}
}

// 最大值
const maxData = (data) => {

    var max = data.sort(function(a,b){
        return Number(b)-Number(a);
    })[0];
    return Number(max)

}

// 最小值
const minData = (data) => {

    var min = data.sort(function(a,b){
        return Number(a)-Number(b);
    })[0];
    return Number(min)

}


// 平均值
const avgData = (data) => {

    var sun=0
    data.map((item) => {
        sun+=Number(item)
    })
    var avg = sun/data.length
    return Number(avg)

}

// 时间格式化
export const formatDate = (time) => {
    var date = new Date(time);
    var YY = date.getFullYear() + '-';
    var MM = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
    var DD = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate());
    var hh = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
    var mm = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
    var ss = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
    return YY + MM + DD +" "+hh + mm + ss;
  }
